home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / demos / demobook / globals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-08-02  |  3.7 KB  |  164 lines

  1. /*
  2.  * Copyright 1993, 1994, Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  5.  * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
  6.  * the contents of this file may not be disclosed to third parties, copied or
  7.  * duplicated in any form, in whole or in part, without the prior written
  8.  * permission of Silicon Graphics, Inc.
  9.  *
  10.  * RESTRICTED RIGHTS LEGEND:
  11.  * Use, duplication or disclosure by the Government is subject to restrictions
  12.  * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
  13.  * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
  14.  * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
  15.  * rights reserved under the Copyright Laws of the United States.
  16.  */
  17. #ifndef GLOBAL_H
  18. #define GLOBAL_H
  19.  
  20. unsigned short leftcursor[16] = {
  21.     0x0000,
  22.     0x0080,
  23.     0x00C0,
  24.     0x00E0,
  25.     0x00F0,
  26.     0x00F8,
  27.     0x00FC,
  28.     0x00FE,
  29.     0x00FF,
  30.     0x00FE,
  31.     0x00FC,
  32.     0x00F8,
  33.     0x00F0,
  34.     0x00E0,
  35.     0x00C0,
  36.     0x0080};
  37. unsigned short rightcursor[16] = {
  38.     0x0000,
  39.     0x0100,
  40.     0x0300,
  41.     0x0700,
  42.     0x0F00,
  43.     0x1F00,
  44.     0x3F00,
  45.     0x7F00,
  46.     0xFF00,
  47.     0x7F00,
  48.     0x3F00,
  49.     0x1F00,
  50.     0x0F00,
  51.     0x0700,
  52.     0x0300,
  53.     0x0100 };
  54. /* other color ramps for the shelves
  55.    {40, 92, 37}, to 
  56.    {0, 36, 0},
  57.    {255, 255, 191}, to
  58.    {188, 170, 116},
  59.    {207, 128, 55}, to
  60.    {106, 45, 0},
  61.    {176, 124, 75}, to
  62.    {130, 92, 53},
  63.    {96, 165, 139}, to
  64.    {0, 94, 63},
  65.    {134, 134, 134}, to
  66.    {40, 40, 40},
  67.    {105, 188, 255}, to
  68.    {0, 0, 127},
  69. */
  70.  
  71. /* shelf colors 2  */
  72. /* background color 3 */
  73. short morecolors[162][3] = {
  74.    {0, 0, 0} ,        /* 0 black */
  75.    {255, 192, 226} ,     /* 1 cream for messages*/
  76.    {138, 84, 51} ,     /* 2 shelf color */
  77.    {0, 0, 0} ,        /* 3 background */
  78.    {123, 63, 209} ,    /* 4 light purple 2 */
  79.    {55, 0, 102} ,     /* 5 dark purple */
  80.    {255, 0, 0} ,    /* 6 red */
  81.    {0, 0, 255} ,    /* 7 blue */
  82.    {0, 255, 0} ,    /* 8 green */
  83.    {255, 175, 0},    /* 9 yellow */  /* keep background for groupwin */
  84.    {0, 0, 0},    /* start of the icon colors */
  85.    {255, 0, 0},
  86.    {0, 255, 0},
  87.    {255, 255, 0},
  88.    {0, 0, 255},
  89.    {255, 0, 255},
  90.    {0, 255, 255},
  91.    {255, 255, 255},
  92.    {85, 85, 85},
  93.    {198, 113, 113},
  94.    {113, 198, 113}, 
  95.    {142, 142, 56},
  96.    {113, 113, 198},
  97.    {142, 56, 56},
  98.    {56, 142, 142},
  99.    {170, 170, 170}};
  100.  
  101. int Black = 10;
  102. int White = 17;
  103.  
  104. long    Indexwin,  /* the window that displays/manipulates the index */
  105.     ADwin,     /* the window where demos are added */
  106.         MSwin,     /* the window where the user receives messages */
  107.     RDwin;     /* the window that lets the user type in a file name*/
  108.  
  109. int selected; /* this is the icon on the current page that
  110.             that the user pointed to last */
  111. int prevselection;  /* the icon on the current page that was chosen last time */
  112. Boolean EditGroupFlag = 0;
  113. Boolean EditDemoFlag = 0;
  114. Boolean DeleteDemoFlag = FALSE;
  115. Boolean DeleteGroupFlag = FALSE;
  116. Boolean KW_change;
  117. Boolean EF_change;
  118. char *FileName;
  119. int FileMode;
  120.  
  121. int closeup = 0;
  122. float click1, tmptime, elapsed_time;
  123.  
  124. /*
  125. float texbox[4][3] = {  {0.2, 0.33, 0.0},
  126.             {1.8, 0.33, 0.0}, 
  127.             {1.8, 2.0, 0.0},
  128.             {0.2, 2.0, 0.0} };
  129.  
  130. float texnorm[3] = {0.0, 0.0, 1.0};
  131.  
  132. float texpnts[4][2] = { {0.0, 0.0},
  133.             {1.0, 0.0},
  134.             {1.0, 1.0},
  135.             {0.0, 1.0} };
  136.  
  137.    float tex_props[] = {TX_MINFILTER,TX_MIPMAP_BILINEAR,
  138.                          TX_MAGFILTER,TX_BILINEAR,TX_NULL};
  139.    float env_props[] = {TV_NULL};
  140. */
  141.  
  142. struct icntmpltstruct *backicon[49];
  143.  
  144. int numberofgroups;
  145. int numberoficons;
  146. int numberofbooks;
  147. int newgroupnumicons;
  148.  
  149. int currentbook;
  150. Boolean OPENBOOK = FALSE;  /* hard wire for now */
  151. Boolean ASCII = FALSE;
  152. char *msgstring;
  153.  
  154. float color_mult;
  155. long Hide;
  156. Boolean Audio;
  157. Boolean ViewOnly;
  158. char *demoenv, *xenv, *sbenv;
  159. int demoenvlen, xenvlen, sbenvlen;
  160.  
  161. Boolean message_waiting = FALSE;
  162.  
  163. #endif
  164.